var log = {
	init : function() {
		log.logDataGrid = $('#logDataGrid');
		
		log.logDataGrid.datagrid({
		    url: window.ctx + '/sys/log/listLogs',
		    fitColumns: true,
		    striped: true,
		    rownumbers: true,
		    pagination: true,
		    pageSize: 10,
		    pageList: [5, 8, 10, 15],
		    pageNumber: 1,
		    columns:[[
				{field:'id', width:100, checkbox: true},
				{field:'userCode', title:'帐号', width:100, align:'center'},
				{field:'ip', title:'IP地址', width:100, align:'center'},
				{field:'operation', title:'操作', width:100, align:'center'},
		    ]],
		});
	},
};

$(function(){
	log.init();
});